import React, { StrictMode } from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Route } from 'react-router-dom';
import { Provider } from 'react-redux';
import App from './pages/app/App';
import Loading from './pages/loading';
import 'normalize.css';
import './style.css';
import store from './store';

console.log(import.meta.env.MODE);

ReactDOM.render(
  <Provider store={store}>
    <StrictMode>
      <BrowserRouter>
        <Route path="/" exact><Loading /></Route>
        <Route path="/app"><App /></Route>
      </BrowserRouter>
    </StrictMode>
  </Provider>,
  document.getElementById('root'),
);
